package com.d0311;

public interface IDefaultMethod {
    default void foo(){
        System.out.println("啊啦啦啦啊");
    }
}

class DefultMethodImpl implements IDefaultMethod,IMultiInterface{
    public static void main(String[] args) {
        DefultMethodImpl defultMethod = new DefultMethodImpl();
        defultMethod.foo();
    }
//覆盖或者显示调用
    /*@Override
    public void foo() {
        System.out.println("1111");
    }*/
    public void foo(){
        IDefaultMethod.super.foo();
    }
}
